/*
 * Copyright (c) 2011. c.mueller
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * The Software shall be used for Good, not Evil.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

package de.altitude.cimuelle.coop;

import org.apache.log4j.Logger;

/**
 * Class description:
 * the game stats for coop
 * User: cybernaut
 * Date: 07.10.11
 * Time: 00:56
 */
public class CoopGameStats {
    final private static Logger LOGGER = Logger.getLogger("CoopGameStats");

    private int turretsDestroyed;
    private int turretsDamageDone;

    private int playerDied;
    private int activePlayer;

    public CoopGameStats() {
        this.turretsDestroyed = 0;
        this.turretsDamageDone = 0;
        this.playerDied = 0;
        this.activePlayer = 0;
    }

    public CoopGameStats(int activePlayer, int playerDied, int turretsDamageDone, int turretsDestroyed) {
        this.activePlayer = activePlayer;
        this.playerDied = playerDied;
        this.turretsDamageDone = turretsDamageDone;
        this.turretsDestroyed = turretsDestroyed;
    }

    public int getTurretsDestroyed() {
        return turretsDestroyed;
    }

    public void setTurretsDestroyed(int turretsDestroyed) {
        this.turretsDestroyed = turretsDestroyed;
    }

    public int getTurretsDamageDone() {
        return turretsDamageDone;
    }

    public void setTurretsDamageDone(int turretsDamageDone) {
        this.turretsDamageDone = turretsDamageDone;
    }

    public int getPlayerDied() {
        return playerDied;
    }

    public void setPlayerDied(int playerDied) {
        this.playerDied = playerDied;
    }

    public int getActivePlayer() {
        return activePlayer;
    }

    public void setActivePlayer(int activePlayer) {
        this.activePlayer = activePlayer;
    }

    @Override
    public String toString() {
        return "CoopGameStats{" +
                "turretsDestroyed=" + turretsDestroyed +
                ", turretsDamageDone=" + turretsDamageDone +
                ", playerDied=" + playerDied +
                ", activePlayer=" + activePlayer +
                '}';
    }
}
